﻿namespace Jim.K3Cloud;

/// <summary>
/// Common.config中AppSettings需要返回的参数的键值
/// </summary>
[Sdk("Kingdee.BOS.ServiceFacade.ServicesStub.ClienterService.GetServerCommonConfig", "获取配置文件")]
public class K3CloudGetServerCommonConfigRequest : ISdkRequest<K3CloudGetServerCommonConfigResponse>
{
    /// <summary>
    /// 客户端类型
    /// </summary>
    [Required(ErrorMessage = "请选择客户端类型")]
    public ClientType Type { get; set; }


    public void Validate()
    {
    }
}


public class K3CloudGetServerCommonConfigResponse : SdkResponse<K3CloudGetServerCommonConfig>
{
}


public class K3CloudGetServerCommonConfig
{

    public bool isManagementSite { get; set; }
    public bool SL_Http_Compressed { get; set; }
    public bool ResponseUnzip { get; set; }
    public bool UseHttpClient { get; set; }
    public bool AutomationTest { get; set; }
    public bool IsInputBlock { get; set; }
    public bool AllowCustomUseDefLoginUI { get; set; }
    public bool SendUserBehaviorData { get; set; }
    public int RequestRetryLimit { get; set; }
    public bool IsShowLoggedInMessage { get; set; }
    public string DefaultLoginType { get; set; }
    public List<KeyValuePair<string, string>> clientcontrolplugins { get; set; }
    public K3CloudGetServerCommonConfigBrandResource brandresource { get; set; }
    public bool IsPublicCloud { get; set; }
    public bool IsEduProduct { get; set; }
    public bool IsOldMainConsole { get; set; }
    public string SMachineName { get; set; }
    public int count { get; set; }
}

public class K3CloudGetServerCommonConfigBrandResource
{
    [JsonConverter(typeof(LocaleValueConverter))]
    public string DefaultName { get; set; }
    public string DefalutLog { get; set; }
    public string DefalutIc { get; set; }
    public string RightContent { get; set; }
    public string Resource1 { get; set; }
    public string Resource2 { get; set; }
    public string Resource3 { get; set; }
    public string Resource4 { get; set; }
    public string Resource5 { get; set; }
    public string Resource6 { get; set; }
    public string Resource7 { get; set; }
    public string Resource8 { get; set; }
    public string Resource9 { get; set; }
    public string Resource10 { get; set; }
}